package com.yp.lession67.springmpemp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yp
 * @since 2022-03-24
 */
public class Emp extends Model<Emp> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "eno", type = IdType.AUTO)
    private Integer eno;

    private String ename;

    private String esex;

    private Double salary;

    private String pwd;

    @TableField("bornDate")
    private Date borndate;

    private Integer dno;

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }
    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }
    public String getEsex() {
        return esex;
    }

    public void setEsex(String esex) {
        this.esex = esex;
    }
    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
    public Date getBorndate() {
        return borndate;
    }

    public void setBorndate(Date borndate) {
        this.borndate = borndate;
    }
    public Integer getDno() {
        return dno;
    }

    public void setDno(Integer dno) {
        this.dno = dno;
    }

    @Override
    protected Serializable pkVal() {
        return this.eno;
    }

    @Override
    public String toString() {
        return "Emp{" +
            "eno=" + eno +
            ", ename=" + ename +
            ", esex=" + esex +
            ", salary=" + salary +
            ", pwd=" + pwd +
            ", borndate=" + borndate +
            ", dno=" + dno +
        "}";
    }
}
